﻿@model Gfw.Web.Models.Account.TransferModel

@{
    ViewBag.Title = "无担保转账";
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}

<h2 style="color:Red">当前为：无担保转账</h2>

@using (Html.BeginForm())
{
    @Html.HiddenFor(model => model.Balance)
    <h4>
        @Html.DisplayNameFor(model => model.Balance)
        :
   
        @Html.DisplayFor(model => model.Balance)
    </h4>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Count)
    </div>
    <div class="display-field">
        @Html.TextBoxFor(model => model.Count)
       @Html.ValidationMessageFor(m => m.Count)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ToUser)
    </div>
    <div class="display-field">
        @Html.TextBoxFor(model => model.ToUser)
        @Html.ValidationMessageFor(m => m.ToUser)
    </div>
     @Html.ValidationSummary(true)
    <input type="submit" value="无担保转账" />
}

@{
    if(ViewBag.Done)
    {
        <div id="dialog" title="Dialog Title"><h5>转账成功！</h5>
            <div>
                <button onclick="javascript:closedialog()">继续转账</button>
                @Html.ActionLink("查询转账记录","TransferQuery")
            </div>
        </div>
    <script type="text/javascript">

        $(document).ready(function () {
            $("#dialog").dialog({ title: "操作提示" ,modal: true });
        });
        
        function closedialog() {
            $("#dialog").dialog("close");
        }
    </script>
    }
}
